<style>
	table{
		font-size:12px;
		width:1160px;
		text-align:center;
		border-collapse:collapse;
	}
	table tr td{
		border:1px solid #999;
		height:30px;
	}
	.tr_b td{
		font-weight:bold;
	}
</style>
<script>
	function del(){
			return confirm('确定要删除？');
	}

</script>
	<table>
		<tr class='tr_b'>
			<td>#编号</td>
			<td>商品名</td>
			<td>id</td>
			<td>商品编号</td>
			<td>分类</td>
			<td>品牌</td>
			<td>描述</td>
			<td>市场价</td>
			<td>本店价</td>
			<td>积分</td>
			<td>图片地址</td>
			<td>出售量</td>
			<td>上架时间</td>
			<td>操作</td>
		</tr>
<?php
	$i=0;
	foreach ($goodsData as $val):
?>
		<tr class='tr_n'>
			<td><?php echo ++$i; ?></td>
			<td><?php echo $val['name'] ?></td>
			<td><?php echo $val['id']; ?></td>
			<td><?php echo $val['gid'] ?></td>
			<td><?php echo $val['cname'] ?></td>
			<td><?php echo $val['bname'] ?></td>
			<td><?php echo $val['brief'] ?></td>
			<td><?php echo $val['market'] ?></td>
			<td><?php echo $val['price'] ?></td>
			<td><?php echo $val['score'] ?></td>
			<td><?php echo $val['photo'] ?></td>
			<td><?php echo $val['sales'] ?></td>
			<td><?php echo Date('YmdH',$val['ctime']) ?></td>
			<td>
				<a href='/index.php/Admin/Goods/update/id/<?php echo $val['id']?>'>修改</a>
				
				<a href='/index.php/Admin/Goods/delete/id/<?php echo $val['id']?>'>删除</a>
			</td>
		</tr>
<?php
	endforeach;
?>

	</table>